// 路由配置文件
import Vue from 'vue'
import Router from 'vue-router'
import Index from '../pages/index'
import Admin from '../pages/admin'
import Student from '../pages/student'

Vue.use(Router);

export default new Router({
    routes:[
        {
            // 首页
            path: '/index',
            name: 'Index',
            component: Index
        },
        {
            // 管理页面
            path: '/admin',
            name: 'Admin',
            component: Admin
        },
        {
            // 学生页面
            path: '/student',
            name: 'Student',
            component: Student
        },
    ]
})